<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ include file="/parameter.jsp" %>
<html>
<head>
	<title>后台管理</title>
	<%@ include file="/admin/adminParam.jsp" %>

</head>
<body>
	<div class="statusBar">
		<input type="button" value="添加新板块" onClick="document.location='adminAction.do?method=SortAddPre'" />
	</div>

	<table class="list">
		<tr>
			<th>分类名称</th>
			<th>是否在首页显示</th>
			<th>分类关键字</th>
			<th>排序号</th>
			<th>操 作</th>
		</tr>
		<c:forEach items="${boardlist}" var="board" varStatus="status">
		<tr>
			<td>${board.boardname}</td>
			<td><c:if test="${board.isdisplay == '0'}">是</c:if><c:if test="${board.isdisplay == '1'}">否</c:if></td>
			<td>${board.postkey}</td>
			<td>${board.orderby}</td>
			<td style="text-align: center">
				<a href="adminAction.do?method=SortModifyPre&id=${board.id}">[编辑]</a>
				<a href="adminAction.do?method=SortDeleteDao&id=${board.id}" onClick="return checkDelete();">[删除]</a>
			</td>
		</tr>
        
		</c:forEach>
	</table>
	
	<tools:page pagerName="adminAction.do" pagerSum="${pagerSum}" pagerSize="${pagerSize}"/>
</body>
</html>